Fix compilation with --enable-gcc-warnings and -O1
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 4 Jul 2012 08:07:26 +0000 (12:07 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Wed, 4 Jul 2012 08:07:26 +0000 (12:07 +0400)
commit6b4e53117af6716e657aabe5ab36805069ec6bbd
tree319f2fc9621e28f3c8a4ab32e261e687f5bbe16d
parent10f2cab331f822207980779a51d062e265e81f62
Fix compilation with --enable-gcc-warnings and -O1
optimization level.
* configure.in: If --enable-gcc-warnings, disable
-Wunsafe-loop-optimizations for -O1 optimization level.
* src/doprnt.c (doprnt): Change type of tem to int, initialize
to avoid compiler warning.  Add eassert.
* src/search.c (simple_search): Initialize match_byte to avoid
compiler warning.  Add eassert.
ChangeLog
configure.in
src/ChangeLog
src/doprnt.c
src/search.c